package com.asset.salesforce.service;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.LogicalOperatorsDaoImpl;
import com.asset.salesforce.domain.LogicalOperators;

@Service
@Transactional(readOnly=true)
public class LogicalOperatorsService {

	@Autowired
	LogicalOperatorsDaoImpl logicalOperatorsDao;
	
	public List<LogicalOperators> getAll(){
		List<LogicalOperators> logicalOperators = logicalOperatorsDao.listOperators();
		return  logicalOperators;
	}	
	public LogicalOperators getLogicalOperatorById(Integer Id ) {
		return logicalOperatorsDao.getLogicalOperatorById(Id);
	}
}
